package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 *  返回到前台的数据实体      包含（状态码，插入结果，返回的数据信息）
 */
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T data;
    public CommonResult(Integer code,String message){
        this.code=code;
        this.message=message;
        this.data=null;
    }
}
